package driver;

import implementor.IssueSlipImplementor;
import inventory.stockManagement.controller.LiveIssueSlipController;
import inventory.stockManagement.view.OpenIssueSlipView;
import inventory.view.InventoryMainView;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;

import common.controller.GinController;
import common.controller.IndentController;
import common.controller.IssueSlipController;
import common.controller.MaterialAdderController;
import common.controller.PurchaseOrderController;
import common.view.GinView;
import common.view.IndentView;
import common.view.IssueSlipView;
import common.view.MaterialAdderView;
import common.view.PurchaseOrderView;

import dao.IssueSlipDao;
import dbhandelling.Connections;
import dto.IssueSlip;

import projectincharge.view.ProjectInchargeMainView;
import purchasedepartment.view.PurchaseDepartmentMainView;
import qualityengineer.view.QualityEngineerMainView;
import siteengineer.view.SiteEngineerMainView;
import utility.AppUtilities;

public class Main 
{
	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		EventQueue.invokeLater(new Runnable() 
		{
			public void run() 
			{
				try 
				{
					UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
					JFrame frame = new JFrame();
					
					Connections c=new Connections();
					
					LoginView  iv=new LoginView();
					
					frame.getContentPane().add(iv);
					frame.setVisible(true);
					
					LoginViewController lvc=new LoginViewController(iv,frame);
					frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
					frame.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);
					
				} 
				catch (Exception e) 
				{
					e.printStackTrace();
				}
			}
		});

	}
	
	
	
}
